<extend name="Template:main/content" />
<block name="page-content-wrapper-content">
	<table class="table table-bordered table-striped with-check">
		<thead>
			<tr>
				<th>
					<input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" />
				</th>
				<th width="30px">序号</th>
				<th>代理账号</th>
				<th >代理编号</th>
				<th >剩余佣金</th>
				<th >邮箱</th>
				<th >代理登录状态</th>
				<th >提款状态</th>
				<th >注册时间</th>
				<th width="160px">禁止登录</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="v">
				<tr>
					<td>
						<input type="checkbox" data='{$v.id}' />
					</td>
					<td>
						<div class="numerical">
							{$key+1}
						</div>
					</td>
					<td>{$v.username}</td>
					<th >{$v.agent_code}</th>
					<th >{$v.money}</th>
					<th >{$v.email}</th>
					<th ><if condition="$v['status'] eq 1">正常使用<else/><span style="color:red">禁止登录</span> </if></th>
					<th ><if condition="$v['is_drawings'] eq 1">提款正常<else /><span style="color:red">禁止提款</span></if></th>
					<th >{$v.createtime|date="Y-m-d H:i:s",###}</th>
					<td class="center">
							<if condition="$v['is_drawings'] eq 1">
							<a href="__CONTROLLER__/not_drawings?agent_id={$v.agent_id}" form-type='content'>
									<button class="btn btn btn-primary operation">禁止提款</button>
							</a>
							<else />
							<a href="__CONTROLLER__/can_drawings?agent_id={$v.agent_id}" form-type='content'>
									<button class="btn btn btn-success operation">恢复提款</button>
							</a>
							</if>
							<if condition="$v['status'] eq 2">
									<a href="__CONTROLLER__/edit?agent_id={$v.agent_id}" form-type='content'>
									<button class="btn btn btn-success operation">恢复登录</button>
							</a>
							<else />
							<a href="__CONTROLLER__/update?agent_id={$v.agent_id}" form-type='content'>
									<button class="btn btn btn-primary operation">禁止登录</button>
							</a>
							</if>
					</td>
				</tr>
			</volist>
			<tr>
					<td>/</td>
					<td>/</td>
					<th >/</th>
					<th style="color:green;font-size:20px;">所有页面数据合计:</th>
					<th style="color:green;font-size:20px;" >{$statistics}</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
				</tr>
		</tbody>
	</table>
	<div id="myAlert-bean" class="modal hide" aria-hidden="true" style="display: none;">
		<div class="modal-header">
			<button data-dismiss="modal" class="close" type="button">×</button>
			<h3>删除</h3>
		</div>
		<div class="modal-body">
			<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
		</div>
		<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-bean-alert" href="__CONTROLLER__/foreverdelete">确定</a>
			<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
	</div>
	<!-- page -->
	<include file="Template:main/page" />
</block>